
package de.gwtprime.server.util;

import javax.servlet.http.HttpServletRequest;

import com.google.appengine.api.utils.SystemProperty;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class ServletHelper extends RemoteServiceServlet {


	private static final long serialVersionUID = -7040588017316976709L;

	/**
	 * @return true if the app is in dev mode, false otherwise.
	 * @param request http servlet request
	 */
	public static boolean isDevelopment(HttpServletRequest request) {
		return SystemProperty.environment.value() != SystemProperty.Environment.Value.Production;
	}
}
